Flow-sensitive Typing
occurrence typing
型安全性
のあるキャスト
型の絞り込み
個人的に理解しやすいのは
TypeScriptのTypeGuard
だ
if文でnullableを見たらnullチェックになるやつ
Kotlin
smart cast
https://kmizu.hatenablog.com/entry/2016/03/14/133512
https://kotlinlang.org/docs/reference/typecasts.html
Ceylon
https://ceylon-lang.org/documentation/1.2/introduction/#typesafe_null_and_flow_sensitive_typing
TypeScript
TypeScriptのControl Flow Analysis
https://en.wikipedia.org/wiki/Flow-sensitive_typing
/herp-technote/Flow-sensitive Typing
https://blog.miz-ar.info/2023/12/beyond-tapl/